<include file="../Public/Graden_top" />
<script src="__THEME__/js/Highcharts/highcharts.js"></script>
<script src="__THEME__/js/Highcharts/highcharts-more.js"></script>
<script src="__THEME__/js/Highcharts/modules/exporting.js"></script>
<script src="__THEME__/js/jqprint.js"></script>
<script language="javascript">
function print(){
  var id=$("#id").val();
  $("#box"+id).jqprint();
}
</script>
<script>
 var year=new Array(parseFloat("<?php echo $data[0]['year']; ?>"),parseFloat("<?php echo $data[1]['year']; ?>"),parseFloat("<?php echo $data[2]['year']; ?>"));
  function changebox(cate,id){
    $(cate).parent().parent().children().removeClass("on");
    $(cate).parent().addClass("on");
    $(".box").css("display","none");
    $("#box"+id).css("display","block");
    $("#id").val(id);
  }
</script>
<div class="content">
  <div style="margin-bottom:10px;float:right:width:10px;margin-right:200px;text-align: right;font-size:16px;">
    <input type="button" onclick="print();" value="打印"/>
    <a href="javascript:history.back();">返回</a>
  </div>
  <div class="wrap">
    <div class="con_wrap">
    <!--导航栏开始-->
      <div class="con_tit">
        <ul class="con_link">
          <li class="on"><a href="javascript:;" onclick="changebox(this,1);">整体评分情况</a></li>
          <li><a href="javascript:;" onclick="changebox(this,2);">身体形态情况</a></li>
          <li><a href="javascript:;" onclick="changebox(this,3);">身体素质情况</a></li>
          <li><a href="javascript:;" onclick="changebox(this,4);">身体机能情况</a></li>
          <li><a href="javascript:;" onclick="changebox(this,5);">综合评价</a></li>
        </ul>
      </div>
      <!--导航栏结束-->
      <!--整体评分情况开始-->
      <div class="box" id="box1" style="display:block;">
      
      <style>
        .title{
          width:100%;
          height:100px;
          color:#e80115;
          font-size:28px;
          line-height:100px;
          text-align:center;
          font-family:"新宋体";
          font-weight:bold;
        }
        .banner{
          width:98.8%;
          height:36px;
          background-color:#67bd98;
          line-height:36px;
          padding-left:15px;
          color:#fff;
          font-size:18px;
        }
        .r_l_b_text{
          width:150px;
          height:32px;
          color:#67abdc;
          text-align:center;
          line-height:32px;
          font-size:16px;
          margin-bottom:10px;
        }
        .table{
            border:1px solid #eeeeee;
            text-align:center;
            font-size:14px;
            font-weight:bold;
          }
          .small_banner{
            width:98.8%;
            height:30px;
            border-bottom-style:solid;
            border-bottom-color: #67bd98;
            border-bottom-width: 3px;
            line-height:40px;
            padding-left:15px;
            font-size:16px;
            color:#2c2e3d;
            font-weight:bold;
            margin-bottom:20px;
          }
          .triangle-right{
            width: 0;
            height: 0;
            border-top: 5px solid transparent;
            border-left: 10px solid #67bd98;
            border-bottom: 5px solid transparent;
          }
        </style>

        <div class="title">{$health_report.rpt_name}整体情况</div>
        <div class="banner">测试概况</div>
        <div style="margin-left:auto;margin-bottom: 20px;margin-top:20px;margin-right:auto;width:700px;">
          <div style="float:left;width:300px;">
            <ul style="width:100%;">
              <li class="r_l_b_text" style="float: left;background-color: #ebf2c9;">测试时间</li>
              <li class="r_l_b_text" style="float: right;background-color: #67abdc; color:#fff;">
              {$health_report.year}年
              <if condition="$health_report['is_report'] eq 1">
                <if condition="$health_report['test_type'] eq 1">春<else/>秋</if>季
              <else/>
                第{$health_report['test_type']}次
              </if>
              </li>
              <li class="r_l_b_text" style="float: left;background-color: #ebf2c9;">测试人数</li>
              <li class="r_l_b_text" style="float: right;background-color: #67abdc; color:#fff;">{$data[2]["sum_number"]}人</li>
            </ul>
          </div>
          <div style="float:left;width:300px;margin-left:20px;">
            <ul style="width:100%;">
              <li class="r_l_b_text" style="float: left;background-color: #ebf2c9;">测试有效人数</li>
              <li class="r_l_b_text" style="float: right;background-color: #67abdc; color:#fff;">{$data[2]["effective_number"]}人</li>
              <li class="r_l_b_text" style="float: left;background-color: #ebf2c9;">无效人数</li>
              <li class="r_l_b_text" style="float: right;background-color: #67abdc; color:#fff;">{$data[2]["invalid_number"]}人</li>
            </ul>
          </div>
          <div style="clear:both;"></div>
        </div>
        <div id="user" style="margin:20px 240px 20px 240px;width:620px;"></div>
        <script>
            var effective="<?php echo $data[0]['effective_number']; ?>";
            var invalid="<?php echo $data[0]['invalid_number']; ?>";
            var sum="<?php echo $data[0]['sum_number']; ?>";
            var effective1="<?php echo $data[1]['effective_number']; ?>";
            var invalid1="<?php echo $data[1]['invalid_number']; ?>";
            var sum1="<?php echo $data[1]['sum_number']; ?>";
            var effective2="<?php echo $data[2]['effective_number']; ?>";
            var invalid2="<?php echo $data[2]['invalid_number']; ?>";
            var sum2="<?php echo $data[2]['sum_number']; ?>";
            var effective=new Array(parseFloat(effective),parseFloat(effective1),parseFloat(effective2));
            var invalid=new Array(parseFloat(invalid),parseFloat(invalid1),parseFloat(invalid2));
            var sum=new Array(parseFloat(sum),parseFloat(sum1),parseFloat(sum2));
           $('#user').highcharts({
              title: {
                text: '数据环比',
                x: -20 //center
              },
              xAxis: {
                categories: year
              },
              yAxis: {
                title: {
                    text: '人数 (人)'
                },
                plotLines: [{
                  value: 0,
                  width: 1,
                  color: '#808080'
                }]
              },
              exporting: {
                enabled:false
              },
              tooltip: {
                valueSuffix: '人'
              },
              legend: {
                layout: 'vertical',
                align: 'right',
                verticalAlign: 'middle',
                borderWidth: 0
              },
              series: [{
                name: '有效人数',
                data: effective
              },{
                name: '无效人数',
                data: invalid
              }, {
                name: '总人数',
                data: sum
              }]
            });
          </script>
        <div style="padding-left: 240px;margin-bottom:50px;">
          <table class="table" border="1"  style="width:620px;border:1px solid #67bd98;">
            <tr>
              <td height="30" style="text-align:center;">&nbsp;&nbsp;</td>
              <volist name="data" id="year">
                <td style="text-align:center;">{$year.year}</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">有效人数</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><if condition="$year['effective_number']">{$year.effective_number}人<else/>无</if></td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">无效人数</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><if condition="$year['invalid_number']">{$year.invalid_number}人<else/>无</if></td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">总人数</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><if condition="$year['sum_number']">{$year.sum_number}人<else/>无</if></td>
              </volist>
            </tr>
          </table>
          </div>
        <div class="banner">国标等级统计概况</div>
        <div class="small_banner">根据《国民体质测定标准儿童手册（幼儿部分）》的相关测试标准，针对本次测试数据统计，其评级分布概况如下：</div>
        <div style="width:1200px;height:auto;">
          <div style="width:500px;float:left;height:300px;margin-right:150px;" id="national"></div>
          <script>
            var physicallevel1=parseFloat("<?php echo $data[2]['physicallevel'][0][0]; ?>");
            var physicallevel2=parseFloat("<?php echo $data[2]['physicallevel'][1][0]; ?>");
            var physicallevel3=parseFloat("<?php echo $data[2]['physicallevel'][2][0]; ?>");
            var physicallevel4=parseFloat("<?php echo $data[2]['physicallevel'][3][0]; ?>");
            var physicallevel5=parseFloat("<?php echo $data[2]['physicallevel'][4][0]; ?>");
            $('#national').highcharts({
              chart: {
                plotBackgroundColor: null,
                plotBorderWidth: null,
                plotShadow: false,
                type: 'pie'
            },
            title: {
                text: ''
            },
            plotOptions: {
              pie: {
                allowPointSelect: true,
                cursor: 'pointer',
                dataLabels: {
                    enabled: false
                },
                showInLegend: true
              }
            },
            exporting: {
              enabled:false
            },
            series: [{
              name: '等级',
              colorByPoint: true,
              data: [{
                name: '优秀',
                y: physicallevel1
              }, {
                name: '良好',
                y: physicallevel2
              }, {
                name: '合格',
                y: physicallevel3
              }, {
                name: '不合格',
                y: physicallevel4
              }, {
                name: '无法评级',
                y: physicallevel5
              }]
            }]
            });
          </script>
          <div style="width:500px;float:left;">
            <table width="60%" border="2">
            <tr>
              <td height="30" style="text-align:center;background-color:#c0d59c;">国标测试等级</td>
              <td height="30" style="text-align:center;background-color:#c0d59c;">人数</td>
            </tr>
            <tr>
              <td style="text-align:center; background-color:#f0f8ed;">一级（优秀）</td>                
              <td height="30" style="text-align:center;background-color:#f0f8ed;">{$data[2]['physicallevel'][0][0]}人</td>
            </tr>
            <tr>
              <td style="text-align:center;background-color:#f0f8ed;">二级（良好）</td>                
              <td height="30" style="text-align:center;background-color:#f0f8ed;">{$data[2]['physicallevel'][1][0]}人</td>
            </tr>
            <tr>
              <td style="text-align:center;background-color:#f0f8ed;">三级（合格）</td>                
              <td height="30" style="text-align:center;background-color:#f0f8ed;">{$data[2]['physicallevel'][2][0]}人</td>
            </tr>
            <tr>
              <td style="text-align:center;background-color:#f0f8ed;">四级（不合格）</td>                
              <td height="30" style="text-align:center;background-color:#f0f8ed;">{$data[2]['physicallevel'][3][0]}人</td>
            </tr>
            <tr>
              <td style="text-align:center;background-color:#f0f8ed;">无法评级</td>                
              <td height="30" style="text-align:center;background-color:#f0f8ed;">{$data[2]['physicallevel'][4][0]}人</td>
            </tr>
          </table>
          </div>
          <div style="clear:both;"></div>
        </div>
        <!--评级环比开始-->
        <div style="width:100%;height:auto;">
          <div style="width:500px;float:left;height:300px;" id="national_hb"></div>
          <script>
            var physicallevel1=parseFloat("<?php echo $data[0]['physicallevel'][0][0]; ?>");
            var physicallevel1_1=parseFloat("<?php echo $data[1]['physicallevel'][0][0]; ?>");
            var physicallevel1_2=parseFloat("<?php echo $data[2]['physicallevel'][0][0]; ?>");
            var physicallevel1=new Array(physicallevel1,physicallevel1_1,physicallevel1_2);
            var physicallevel2=parseFloat("<?php echo $data[0]['physicallevel'][1][0]; ?>");
            var physicallevel2_1=parseFloat("<?php echo $data[1]['physicallevel'][1][0]; ?>");
            var physicallevel2_2=parseFloat("<?php echo $data[2]['physicallevel'][1][0]; ?>");
            var physicallevel2=new Array(physicallevel2,physicallevel2_1,physicallevel2_2);
            var physicallevel3=parseFloat("<?php echo $data[0]['physicallevel'][2][0]; ?>");
            var physicallevel3_1=parseFloat("<?php echo $data[1]['physicallevel'][2][0]; ?>");
            var physicallevel3_2=parseFloat("<?php echo $data[2]['physicallevel'][2][0]; ?>");
            var physicallevel3=new Array(physicallevel3,physicallevel3_1,physicallevel3_2);
            var physicallevel4=parseFloat("<?php echo $data[0]['physicallevel'][3][0]; ?>");
            var physicallevel4_1=parseFloat("<?php echo $data[1]['physicallevel'][3][0]; ?>");
            var physicallevel4_2=parseFloat("<?php echo $data[2]['physicallevel'][3][0]; ?>");
            var physicallevel4=new Array(physicallevel4,physicallevel4_1,physicallevel4_2);
            var physicallevel5=parseFloat("<?php echo $data[0]['physicallevel'][4][0]; ?>");
            var physicallevel5_1=parseFloat("<?php echo $data[1]['physicallevel'][4][0]; ?>");
            var physicallevel5_2=parseFloat("<?php echo $data[2]['physicallevel'][4][0]; ?>");
            var physicallevel5=new Array(physicallevel5,physicallevel5_1,physicallevel5_2);
           $('#national_hb').highcharts({
              title: {
                text: '',
                x: -20 //center
              },
              xAxis: {
                categories: year
              },
              yAxis: {
                title: {
                    text: '人数 (人)'
                },
                plotLines: [{
                  value: 0,
                  width: 1,
                  color: '#808080'
                }]
              },
            exporting: {
              enabled:false
            },

              tooltip: {
                valueSuffix: '人'
              },
              legend: {
                layout: 'vertical',
                align: 'right',
                verticalAlign: 'middle',
                borderWidth: 0
              },
              series: [{
                name: '优秀',
                data: physicallevel1
              },{
                name: '良好',
                data: physicallevel2
              }, {
                name: '合格',
                data: physicallevel3
              }, {
                name: '不合格',
                data: physicallevel4
              }, {
                name: '无法评级',
                data: physicallevel5
              }]
            });
          </script>
          <div style="width:50%;float:right">
            <table class="table" style="width:500px;border:1px solid #67bd98;" border="1">
            <tr>
              <td height="30" style="text-align:center;">&nbsp;&nbsp;</td>
              <volist name="data" id="year">
                <td style="text-align:center;">{$year.year}</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">优秀</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[physicallevel][0][0]/$year['sum_number']*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">良好</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[physicallevel][1][0]/$year['sum_number']*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">合格</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[physicallevel][2][0]/$year['sum_number']*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">不合格</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[physicallevel][3][0]/$year['sum_number']*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">无法评级</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[physicallevel][4][0]/$year['sum_number']*100,2);</php>%</td>
              </volist>
            </tr>
          </table>
          </div>
          <div style="clear:both;"></div>
        </div>
        <!--评级环比结束-->
      <div class="small_banner">按性别分布概况</div>
      <!--性别分布开始-->
        <div style="width:100%;height:auto;">
          <div style="width:500px;float:left;height:300px;margin-right:100px;" id="gender"></div>
          <script>
            var physicallevel1_man=parseFloat("<?php echo $data[2]['physicallevel'][0][1]; ?>");
            var physicallevel1_woman=parseFloat("<?php echo $data[2]['physicallevel'][0][2]; ?>");
            var physicallevel2_man=parseFloat("<?php echo $data[2]['physicallevel'][1][1]; ?>");
            var physicallevel2_woman=parseFloat("<?php echo $data[2]['physicallevel'][1][2]; ?>");
            var physicallevel3_man=parseFloat("<?php echo $data[2]['physicallevel'][2][1]; ?>");
            var physicallevel3_woman=parseFloat("<?php echo $data[2]['physicallevel'][2][2]; ?>");
            var physicallevel4_man=parseFloat("<?php echo $data[2]['physicallevel'][3][1]; ?>");
            var physicallevel4_woman=parseFloat("<?php echo $data[2]['physicallevel'][3][2]; ?>");
            var physicallevel5_man=parseFloat("<?php echo $data[2]['physicallevel'][4][1]; ?>");
            var physicallevel5_woman=parseFloat("<?php echo $data[2]['physicallevel'][4][2]; ?>");
            $('#gender').highcharts({
                chart: {
                    type: 'column'
                },
                title: {
                    text: ''
                },
                subtitle: {
                    text: ''
                },
                xAxis: {
                  categories: [
                      '优秀',
                      '良好',
                      '合格',
                      '不合格',
                      '无法评级'
                  ],
                    crosshair: true
                },
              exporting: {
                enabled:false
              },

                yAxis: {
                    min: 0,
                    title: {
                        text: '人数 (人)'
                    }
                },
                tooltip: {
                    headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
                    pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
                        '<td style="padding:0"><b>{point.y} 人</b></td></tr>',
                    footerFormat: '</table>',
                    shared: true,
                    useHTML: true
                },
                plotOptions: {
                    column: {
                        pointPadding: 0.2,
                        borderWidth: 0
                    }
                },
                series: [{
                    name: '男',
                    data: [physicallevel1_man, physicallevel2_man, physicallevel3_man,physicallevel4_man,physicallevel5_man]

                }, {
                    name: '女',
                    data: [physicallevel1_woman,physicallevel2_woman,physicallevel3_woman,physicallevel4_woman,physicallevel5_woman]

                }]
            });
          </script>
          <?php 
            $man= $data[2]['physicallevel'][0][1]+$data[2]['physicallevel'][1][1]+$data[2]['physicallevel'][2][1]+$data[2]['physicallevel'][3][1]+$data[2]['physicallevel'][4][1];
            $woman= $data[2]['physicallevel'][0][2]+$data[2]['physicallevel'][1][2]+$data[2]['physicallevel'][2][2]+$data[2]['physicallevel'][3][2]+$data[2]['physicallevel'][4][2];
          ?>
          <div style="width:500px;float:left;font-size:16px;font-weight:bold;">
            从性别分布来看，男孩中优秀幼儿人数{$data[2]['physicallevel'][0][1]}名，占比<?php echo round($data[2]['physicallevel'][0][1]/$man*100,2); ?>%，良好人数{$data[2]['physicallevel'][1][1]}名，占比<?php echo round($data[2]['physicallevel'][1][1]/$man*100,2); ?>%，合格人数{$data[2]['physicallevel'][2][1]}名，占比<?php echo round($data[2]['physicallevel'][2][1]/$man*100,2); ?>%，不合格人数{$data[2]['physicallevel'][3][1]}名，占比<?php echo round($data[2]['physicallevel'][3][1]/$man*100,2); ?>%，无法评级人数{$data[2]['physicallevel'][4][1]}名，占比<?php echo round($data[2]['physicallevel'][4][1]/$man*100,2); ?>%，女孩中优秀幼儿人数{$data[2]['physicallevel'][0][2]}名，占比<?php echo round($data[2]['physicallevel'][0][2]/$woman*100,2); ?>%，良好人数{$data[2]['physicallevel'][1][2]}名，占比<?php echo round($data[2]['physicallevel'][1][2]/$woman*100,2); ?>%，合格人数{$data[2]['physicallevel'][2][2]}名，占比<?php echo round($data[2]['physicallevel'][2][2]/$woman*100,2); ?>%，不合格人数{$data[2]['physicallevel'][3][2]}名，占比<?php echo round($data[2]['physicallevel'][3][2]/$woman*100,2); ?>%，无法评级人数{$data[2]['physicallevel'][4][2]}名，占比<?php echo round($data[2]['physicallevel'][4][2]/$woman*100,2); ?>%
          </div>
          <div style="clear:both;"></div>
        </div>
        <!--性别分布结束-->
        <!--男性环比分布开始-->
        <div style="width:100%;height:auto;">
          <div style="width:500px;float:left;height:300px;" id="man"></div>
          <script>
            var physicallevel1=parseFloat("<?php echo $data[0]['physicallevel'][0][1]; ?>");
            var physicallevel1_1=parseFloat("<?php echo $data[1]['physicallevel'][0][1]; ?>");
            var physicallevel1_2=parseFloat("<?php echo $data[2]['physicallevel'][0][1]; ?>");
            var physicallevel1=new Array(physicallevel1,physicallevel1_1,physicallevel1_2);
            var physicallevel2=parseFloat("<?php echo $data[0]['physicallevel'][1][1]; ?>");
            var physicallevel2_1=parseFloat("<?php echo $data[1]['physicallevel'][1][1]; ?>");
            var physicallevel2_2=parseFloat("<?php echo $data[2]['physicallevel'][1][1]; ?>");
            var physicallevel2=new Array(physicallevel2,physicallevel2_1,physicallevel2_2);
            var physicallevel3=parseFloat("<?php echo $data[0]['physicallevel'][2][1]; ?>");
            var physicallevel3_1=parseFloat("<?php echo $data[1]['physicallevel'][2][1]; ?>");
            var physicallevel3_2=parseFloat("<?php echo $data[2]['physicallevel'][2][1]; ?>");
            var physicallevel3=new Array(physicallevel3,physicallevel3_1,physicallevel3_2);
            var physicallevel4=parseFloat("<?php echo $data[0]['physicallevel'][3][1]; ?>");
            var physicallevel4_1=parseFloat("<?php echo $data[1]['physicallevel'][3][1]; ?>");
            var physicallevel4_2=parseFloat("<?php echo $data[2]['physicallevel'][3][1]; ?>");
            var physicallevel4=new Array(physicallevel4,physicallevel4_1,physicallevel4_2);
            var physicallevel5=parseFloat("<?php echo $data[0]['physicallevel'][4][1]; ?>");
            var physicallevel5_1=parseFloat("<?php echo $data[1]['physicallevel'][4][1]; ?>");
            var physicallevel5_2=parseFloat("<?php echo $data[2]['physicallevel'][4][1]; ?>");
            var physicallevel5=new Array(physicallevel5,physicallevel5_1,physicallevel5_2);
           $('#man').highcharts({
              title: {
                text: '男孩环比',
                x: -20 //center
              },
              xAxis: {
                categories: year
              },
              yAxis: {
                title: {
                    text: '人数 (人)'
                },
                plotLines: [{
                  value: 0,
                  width: 1,
                  color: '#808080'
                }]
              },
            exporting: {
              enabled:false
            },

              tooltip: {
                valueSuffix: '人'
              },
              legend: {
                layout: 'vertical',
                align: 'right',
                verticalAlign: 'middle',
                borderWidth: 0
              },
              series: [{
                name: '优秀',
                data: physicallevel1
              },{
                name: '良好',
                data: physicallevel2
              }, {
                name: '合格',
                data: physicallevel3
              }, {
                name: '不合格',
                data: physicallevel4
              }, {
                name: '无法评级',
                data: physicallevel5
              }]
            });
          </script>
          <div style="width:50%;float:right">
            <table class="table" style="width:500px;border:1px solid #67bd98;" border="1">
            <tr>
              <td height="30" style="text-align:center;">&nbsp;&nbsp;</td>
              <volist name="data" id="year">
                <td style="text-align:center;">{$year.year}</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">优秀</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[physicallevel][0][1]/($year[physicallevel][0][1]+$year[physicallevel][1][1]+$year[physicallevel][2][1]+$year[physicallevel][3][1]+$year[physicallevel][4][1])*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">良好</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[physicallevel][1][1]/($year[physicallevel][0][1]+$year[physicallevel][1][1]+$year[physicallevel][2][1]+$year[physicallevel][3][1]+$year[physicallevel][4][1])*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">合格</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[physicallevel][2][1]/($year[physicallevel][0][1]+$year[physicallevel][1][1]+$year[physicallevel][2][1]+$year[physicallevel][3][1]+$year[physicallevel][4][1])*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">不合格</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[physicallevel][3][1]/($year[physicallevel][0][1]+$year[physicallevel][1][1]+$year[physicallevel][2][1]+$year[physicallevel][3][1]+$year[physicallevel][4][1])*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">无法评级</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[physicallevel][4][1]/($year[physicallevel][0][1]+$year[physicallevel][1][1]+$year[physicallevel][2][1]+$year[physicallevel][3][1]+$year[physicallevel][4][1])*100,2);</php>%</td>
              </volist>
            </tr>
          </table>
          </div>
          <div style="clear:both;"></div>
        </div>
        <!--男性环比分布结束-->
        <!--女性环比分布开始-->
        <div style="width:100%;height:auto;">
          <div style="width:500px;float:left;height:300px;" id="woman"></div>
          <script>
            var physicallevel1=parseFloat("<?php echo $data[0]['physicallevel'][0][2]; ?>");
            var physicallevel1_1=parseFloat("<?php echo $data[1]['physicallevel'][0][2]; ?>");
            var physicallevel1_2=parseFloat("<?php echo $data[2]['physicallevel'][0][2]; ?>");
            var physicallevel1=new Array(physicallevel1,physicallevel1_1,physicallevel1_2);
            var physicallevel2=parseFloat("<?php echo $data[0]['physicallevel'][1][2]; ?>");
            var physicallevel2_1=parseFloat("<?php echo $data[1]['physicallevel'][1][2]; ?>");
            var physicallevel2_2=parseFloat("<?php echo $data[2]['physicallevel'][1][2]; ?>");
            var physicallevel2=new Array(physicallevel2,physicallevel2_1,physicallevel2_2);
            var physicallevel3=parseFloat("<?php echo $data[0]['physicallevel'][2][2]; ?>");
            var physicallevel3_1=parseFloat("<?php echo $data[1]['physicallevel'][2][2]; ?>");
            var physicallevel3_2=parseFloat("<?php echo $data[2]['physicallevel'][2][2]; ?>");
            var physicallevel3=new Array(physicallevel3,physicallevel3_1,physicallevel3_2);
            var physicallevel4=parseFloat("<?php echo $data[0]['physicallevel'][3][2]; ?>");
            var physicallevel4_1=parseFloat("<?php echo $data[1]['physicallevel'][3][2]; ?>");
            var physicallevel4_2=parseFloat("<?php echo $data[2]['physicallevel'][3][2]; ?>");
            var physicallevel4=new Array(physicallevel4,physicallevel4_1,physicallevel4_2);
            var physicallevel5=parseFloat("<?php echo $data[0]['physicallevel'][4][2]; ?>");
            var physicallevel5_1=parseFloat("<?php echo $data[1]['physicallevel'][4][2]; ?>");
            var physicallevel5_2=parseFloat("<?php echo $data[2]['physicallevel'][4][2]; ?>");
            var physicallevel5=new Array(physicallevel5,physicallevel5_1,physicallevel5_2);
           $('#woman').highcharts({
              title: {
                text: '女孩环比',
                x: -20 //center
              },
              xAxis: {
                categories: year
              },
              yAxis: {
                title: {
                    text: '人数 (人)'
                },
                plotLines: [{
                  value: 0,
                  width: 1,
                  color: '#808080'
                }]
              },
              tooltip: {
                valueSuffix: '人'
              },
            exporting: {
              enabled:false
            },

              legend: {
                layout: 'vertical',
                align: 'right',
                verticalAlign: 'middle',
                borderWidth: 0
              },
              series: [{
                name: '优秀',
                data: physicallevel1
              },{
                name: '良好',
                data: physicallevel2
              }, {
                name: '合格',
                data: physicallevel3
              }, {
                name: '不合格',
                data: physicallevel4
              }, {
                name: '无法评级',
                data: physicallevel5
              }]
            });
          </script>
          <div style="width:50%;float:right">
            <table class="table" style="width:500px;border:1px solid #67bd98;" border="1">
            <tr>
              <td height="30" style="text-align:center;">&nbsp;&nbsp;</td>
              <volist name="data" id="year">
                <td style="text-align:center;">{$year.year}</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">优秀</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[physicallevel][0][2]/($year[physicallevel][0][2]+$year[physicallevel][1][2]+$year[physicallevel][2][2]+$year[physicallevel][3][2]+$year[physicallevel][4][2])*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">良好</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[physicallevel][1][2]/($year[physicallevel][0][2]+$year[physicallevel][1][2]+$year[physicallevel][2][2]+$year[physicallevel][3][2]+$year[physicallevel][4][2])*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">合格</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[physicallevel][2][2]/($year[physicallevel][0][2]+$year[physicallevel][1][2]+$year[physicallevel][2][2]+$year[physicallevel][3][2]+$year[physicallevel][4][2])*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">不合格</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[physicallevel][3][2]/($year[physicallevel][0][2]+$year[physicallevel][1][2]+$year[physicallevel][2][2]+$year[physicallevel][3][2]+$year[physicallevel][4][2])*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">无法评级</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[physicallevel][4][2]/($year[physicallevel][0][2]+$year[physicallevel][1][2]+$year[physicallevel][2][2]+$year[physicallevel][3][2]+$year[physicallevel][4][2])*100,2);</php>%</td>
              </volist>
            </tr>
          </table>
          </div>
          <div style="clear:both;"></div>
        </div>
        <!--女性环比分布结束-->
      <div class="small_banner">按年龄分布概况</div>
      <!--年龄分布开始-->
        <div style="width:100%;height:auto;">
          <div style="width:500px;float:left;height:300px;margin-right:100px;" id="age"></div>
          <script>
            var physicallevel1_age_3=parseFloat("<?php echo $data[2]['age'][0][0]; ?>");
            var physicallevel1_age_4=parseFloat("<?php echo $data[2]['age'][0][1]; ?>");
            var physicallevel1_age_5=parseFloat("<?php echo $data[2]['age'][0][2]; ?>");
            var physicallevel1_age_6=parseFloat("<?php echo $data[2]['age'][0][3]; ?>");
            var physicallevel2_age_3=parseFloat("<?php echo $data[2]['age'][1][0]; ?>");
            var physicallevel2_age_4=parseFloat("<?php echo $data[2]['age'][1][1]; ?>");
            var physicallevel2_age_5=parseFloat("<?php echo $data[2]['age'][1][2]; ?>");
            var physicallevel2_age_6=parseFloat("<?php echo $data[2]['age'][1][3]; ?>");
            var physicallevel3_age_3=parseFloat("<?php echo $data[2]['age'][2][0]; ?>");
            var physicallevel3_age_4=parseFloat("<?php echo $data[2]['age'][2][1]; ?>");
            var physicallevel3_age_5=parseFloat("<?php echo $data[2]['age'][2][2]; ?>");
            var physicallevel3_age_6=parseFloat("<?php echo $data[2]['age'][2][3]; ?>");
            var physicallevel4_age_3=parseFloat("<?php echo $data[2]['age'][3][0]; ?>");
            var physicallevel4_age_4=parseFloat("<?php echo $data[2]['age'][3][1]; ?>");
            var physicallevel4_age_5=parseFloat("<?php echo $data[2]['age'][3][2]; ?>");
            var physicallevel4_age_6=parseFloat("<?php echo $data[2]['age'][3][3]; ?>");
            var physicallevel5_age_3=parseFloat("<?php echo $data[2]['age'][4][0]; ?>");
            var physicallevel5_age_4=parseFloat("<?php echo $data[2]['age'][4][1]; ?>");
            var physicallevel5_age_5=parseFloat("<?php echo $data[2]['age'][4][2]; ?>");
            var physicallevel5_age_6=parseFloat("<?php echo $data[2]['age'][4][3]; ?>");
            $('#age').highcharts({
                chart: {
                    type: 'column'
                },
                title: {
                    text: ''
                },
                subtitle: {
                    text: ''
                },
                xAxis: {
                  categories: [
                      '优秀',
                      '良好',
                      '合格',
                      '不合格',
                      '无法评级'
                  ],
                    crosshair: true
                },
            exporting: {
              enabled:false
            },

                yAxis: {
                    min: 0,
                    title: {
                        text: '人数 (人)'
                    }
                },
                tooltip: {
                    headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
                    pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
                        '<td style="padding:0"><b>{point.y} 人</b></td></tr>',
                    footerFormat: '</table>',
                    shared: true,
                    useHTML: true
                },
                plotOptions: {
                    column: {
                        pointPadding: 0.2,
                        borderWidth: 0
                    }
                },
                series: [{
                    name: '3-4岁',
                    data: [physicallevel1_age_3, physicallevel2_age_3, physicallevel3_age_3,physicallevel4_age_3,physicallevel5_age_3]

                }, {
                    name: '4-5岁',
                    data: [physicallevel1_age_4,physicallevel2_age_4,physicallevel3_age_4,physicallevel4_age_4,physicallevel5_age_4]

                },{
                    name: '5-6岁',
                    data: [physicallevel1_age_5,physicallevel2_age_5,physicallevel3_age_5,physicallevel4_age_5,physicallevel5_age_5]

                }]
            });
          </script>
          <?php 
            $age1= $data[2]['age'][0][0]+$data[2]['age'][1][0]+$data[2]['age'][2][0]+$data[2]['age'][3][0]+$data[2]['age'][4][0];
            $age2= $data[2]['age'][0][1]+$data[2]['age'][1][1]+$data[2]['age'][2][1]+$data[2]['age'][3][1]+$data[2]['age'][4][1];
            $age3= $data[2]['age'][0][2]+$data[2]['age'][1][2]+$data[2]['age'][2][2]+$data[2]['age'][3][2]+$data[2]['age'][4][2];
          ?>
          <div style="width:500px;float:left;font-size:16px;font-weight:bold;">
            从年龄分布来看，3-4岁幼儿中优秀人数{$data[2]['age'][0][0]}名，占比<?php echo round($data[2]['age'][0][0]/$age1*100,2); ?>%，良好人数{$data[2]['age'][1][0]}名，占比<?php echo round($data[2]['age'][1][0]/$age1*100,2); ?>%，合格人数{$data[2]['age'][2][0]}名，占比<?php echo round($data[2]['age'][2][0]/$age1*100,2); ?>%，不合格人数{$data[2]['age'][3][0]}名，占比<?php echo round($data[2]['age'][3][0]/$age1*100,2); ?>%，无法评级人数{$data[2]['age'][4][0]}名，占比<?php echo round($data[2]['age'][4][0]/$age1*100,2); ?>%。4-5岁幼儿中优秀人数{$data[2]['age'][0][1]}名，占比<?php echo round($data[2]['age'][0][1]/$age2*100,2); ?>%，良好人数{$data[2]['age'][1][1]}名，占比<?php echo round($data[2]['age'][1][1]/$age2*100,2); ?>%，合格人数{$data[2]['age'][2][1]}名，占比<?php echo round($data[2]['age'][2][1]/$age2*100,2); ?>%，不合格人数{$data[2]['age'][3][1]}名，占比<?php echo round($data[2]['age'][3][1]/$age2*100,2); ?>%，无法评级人数{$data[2]['age'][4][1]}名，占比<?php echo round($data[2]['age'][4][1]/$age2*100,2); ?>%。5-6岁幼儿中优秀人数{$data[2]['age'][0][2]}名，占比<?php echo round($data[2]['age'][0][2]/$age3*100,2); ?>%，良好人数{$data[2]['age'][1][2]}名，占比<?php echo round($data[2]['age'][1][2]/$age3*100,2); ?>%，合格人数{$data[2]['age'][2][2]}名，占比<?php echo round($data[2]['age'][2][2]/$age3*100,2); ?>%，不合格人数{$data[2]['age'][3][2]}名，占比<?php echo round($data[2]['age'][3][2]/$age3*100,2); ?>%，无法评级人数{$data[2]['age'][4][2]}名，占比<?php echo round($data[2]['age'][4][2]/$age3*100,2); ?>%。
          </div>
          <div style="clear:both;"></div>
        </div>
        <!--年龄分布结束-->
        <!--3岁环比开始-->
        <div style="width:100%;height:auto;">
          <div style="width:500px;float:left;height:300px;" id="age_3"></div>
          <script>
            var physicallevel1=parseFloat("<?php echo $data[0]['age'][0][0]; ?>");
            var physicallevel1_1=parseFloat("<?php echo $data[1]['age'][0][0]; ?>");
            var physicallevel1_2=parseFloat("<?php echo $data[2]['age'][0][0]; ?>");
            var physicallevel1_age=new Array(physicallevel1,physicallevel1_1,physicallevel1_2);
            var physicallevel2=parseFloat("<?php echo $data[0]['age'][1][0]; ?>");
            var physicallevel2_1=parseFloat("<?php echo $data[1]['age'][1][0]; ?>");
            var physicallevel2_2=parseFloat("<?php echo $data[2]['age'][1][0]; ?>");
            var physicallevel2_age=new Array(physicallevel2,physicallevel2_1,physicallevel2_2);
            var physicallevel3=parseFloat("<?php echo $data[0]['age'][2][0]; ?>");
            var physicallevel3_1=parseFloat("<?php echo $data[1]['age'][2][0]; ?>");
            var physicallevel3_2=parseFloat("<?php echo $data[2]['age'][2][0]; ?>");
            var physicallevel3_age=new Array(physicallevel3,physicallevel3_1,physicallevel3_2);
            var physicallevel4=parseFloat("<?php echo $data[0]['age'][3][0]; ?>");
            var physicallevel4_1=parseFloat("<?php echo $data[1]['age'][3][0]; ?>");
            var physicallevel4_2=parseFloat("<?php echo $data[2]['age'][3][0]; ?>");
            var physicallevel4_age=new Array(physicallevel4,physicallevel4_1,physicallevel4_2);
            var physicallevel5=parseFloat("<?php echo $data[0]['age'][4][0]; ?>");
            var physicallevel5_1=parseFloat("<?php echo $data[1]['age'][4][0]; ?>");
            var physicallevel5_2=parseFloat("<?php echo $data[2]['age'][4][0]; ?>");
            var physicallevel5_age=new Array(physicallevel5,physicallevel5_1,physicallevel5_2);
           $('#age_3').highcharts({
            exporting: {
              enabled:false
            },
              title: {
                text: '3-4岁环比',
                x: -20 //center
              },
              xAxis: {
                categories: year
              },
              yAxis: {
                title: {
                    text: '人数 (人)'
                },

                plotLines: [{
                  value: 0,
                  width: 1,
                  color: '#808080'
                }]
              },
              tooltip: {
                valueSuffix: '人'
              },
              legend: {
                layout: 'vertical',
                align: 'right',
                verticalAlign: 'middle',
                borderWidth: 0
              },
              series: [{
                name: '优秀',
                data: physicallevel1_age
              },{
                name: '良好',
                data: physicallevel2_age
              },{
                name: '合格',
                data: physicallevel3_age
              },{
                name: '不合格',
                data: physicallevel4_age
              },{
                name: '无法评级',
                data: physicallevel5_age
              }]
            });
          </script>
          <div style="width:50%;float:right">
            <table class="table" style="width:500px;border:1px solid #67bd98;" border="1">
            <tr>
              <td height="30" style="text-align:center;">&nbsp;&nbsp;</td>
              <volist name="data" id="year">
                <td style="text-align:center;">{$year.year}</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">优秀</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[age][0][0]/($year[age][0][0]+$year[age][1][0]+$year[age][2][0]+$year[age][3][0]+$year[age][4][0])*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">良好</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[age][1][0]/($year[age][0][0]+$year[age][1][0]+$year[age][2][0]+$year[age][3][0]+$year[age][4][0])*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">合格</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[age][2][0]/($year[age][0][0]+$year[age][1][0]+$year[age][2][0]+$year[age][3][0]+$year[age][4][0])*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">不合格</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[age][3][0]/($year[age][0][0]+$year[age][1][0]+$year[age][2][0]+$year[age][3][0]+$year[age][4][0])*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">无法评级</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[age][4][0]/($year[age][0][0]+$year[age][1][0]+$year[age][2][0]+$year[age][3][0]+$year[age][4][0])*100,2);</php>%</td>
              </volist>
            </tr>
          </table>
          </div>
          <div style="clear:both;"></div>
        </div>
        <!--3岁环比结束-->
        <!--4岁环比开始-->
        <div style="width:100%;height:auto;">
          <div style="width:500px;float:left;height:300px;" id="age_4"></div>
          <script>
            var physicallevel1=parseFloat("<?php echo $data[0]['age'][0][1]; ?>");
            var physicallevel1_1=parseFloat("<?php echo $data[1]['age'][0][1]; ?>");
            var physicallevel1_2=parseFloat("<?php echo $data[2]['age'][0][1]; ?>");
            var physicallevel1_age=new Array(physicallevel1,physicallevel1_1,physicallevel1_2);
            var physicallevel2=parseFloat("<?php echo $data[0]['age'][1][1]; ?>");
            var physicallevel2_1=parseFloat("<?php echo $data[1]['age'][1][1]; ?>");
            var physicallevel2_2=parseFloat("<?php echo $data[2]['age'][1][1]; ?>");
            var physicallevel2_age=new Array(physicallevel2,physicallevel2_1,physicallevel2_2);
            var physicallevel3=parseFloat("<?php echo $data[0]['age'][2][1]; ?>");
            var physicallevel3_1=parseFloat("<?php echo $data[1]['age'][2][1]; ?>");
            var physicallevel3_2=parseFloat("<?php echo $data[2]['age'][2][1]; ?>");
            var physicallevel3_age=new Array(physicallevel3,physicallevel3_1,physicallevel3_2);
            var physicallevel4=parseFloat("<?php echo $data[0]['age'][3][1]; ?>");
            var physicallevel4_1=parseFloat("<?php echo $data[1]['age'][3][1]; ?>");
            var physicallevel4_2=parseFloat("<?php echo $data[2]['age'][3][1]; ?>");
            var physicallevel4_age=new Array(physicallevel4,physicallevel4_1,physicallevel4_2);
            var physicallevel5=parseFloat("<?php echo $data[0]['age'][4][1]; ?>");
            var physicallevel5_1=parseFloat("<?php echo $data[1]['age'][4][1]; ?>");
            var physicallevel5_2=parseFloat("<?php echo $data[2]['age'][4][1]; ?>");
            var physicallevel5_age=new Array(physicallevel5,physicallevel5_1,physicallevel5_2);
           $('#age_4').highcharts({
            exporting: {
              enabled:false
            },
              title: {
                text: '4-5岁环比',
                x: -20 //center
              },
              xAxis: {
                categories: year
              },
              yAxis: {
                title: {
                    text: '人数 (人)'
                },

                plotLines: [{
                  value: 0,
                  width: 1,
                  color: '#808080'
                }]
              },
              tooltip: {
                valueSuffix: '人'
              },
              legend: {
                layout: 'vertical',
                align: 'right',
                verticalAlign: 'middle',
                borderWidth: 0
              },
              series: [{
                name: '优秀',
                data: physicallevel1_age
              },{
                name: '良好',
                data: physicallevel2_age
              },{
                name: '合格',
                data: physicallevel3_age
              },{
                name: '不合格',
                data: physicallevel4_age
              },{
                name: '无法评级',
                data: physicallevel5_age
              }]
            });
          </script>
          <div style="width:50%;float:right">
            <table class="table" style="width:500px;border:1px solid #67bd98;" border="1">
            <tr>
              <td height="30" style="text-align:center;">&nbsp;&nbsp;</td>
              <volist name="data" id="year">
                <td style="text-align:center;">{$year.year}</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">优秀</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[age][0][1]/($year[age][0][1]+$year[age][1][1]+$year[age][2][1]+$year[age][3][1]+$year[age][4][1])*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">良好</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[age][1][1]/($year[age][0][1]+$year[age][1][1]+$year[age][2][1]+$year[age][3][1]+$year[age][4][1])*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">合格</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[age][2][1]/($year[age][0][1]+$year[age][1][1]+$year[age][2][1]+$year[age][3][1]+$year[age][4][1])*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">不合格</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[age][3][1]/($year[age][0][1]+$year[age][1][1]+$year[age][2][1]+$year[age][3][1]+$year[age][4][1])*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">无法评级</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[age][4][1]/($year[age][0][1]+$year[age][1][1]+$year[age][2][1]+$year[age][3][1]+$year[age][4][1])*100,2);</php>%</td>
              </volist>
            </tr>
          </table>
          </div>
          <div style="clear:both;"></div>
        </div>
        <!--4岁环比结束-->
        <!--5岁环比开始-->
        <div style="width:100%;height:auto;">
          <div style="width:500px;float:left;height:300px;" id="age_5"></div>
          <script>
            var physicallevel1=parseFloat("<?php echo $data[0]['age'][0][2]; ?>");
            var physicallevel1_1=parseFloat("<?php echo $data[1]['age'][0][2]; ?>");
            var physicallevel1_2=parseFloat("<?php echo $data[2]['age'][0][2]; ?>");
            var physicallevel1_age=new Array(physicallevel1,physicallevel1_1,physicallevel1_2);
            var physicallevel2=parseFloat("<?php echo $data[0]['age'][1][2]; ?>");
            var physicallevel2_1=parseFloat("<?php echo $data[1]['age'][1][2]; ?>");
            var physicallevel2_2=parseFloat("<?php echo $data[2]['age'][1][2]; ?>");
            var physicallevel2_age=new Array(physicallevel2,physicallevel2_1,physicallevel2_2);
            var physicallevel3=parseFloat("<?php echo $data[0]['age'][2][2]; ?>");
            var physicallevel3_1=parseFloat("<?php echo $data[1]['age'][2][2]; ?>");
            var physicallevel3_2=parseFloat("<?php echo $data[2]['age'][2][2]; ?>");
            var physicallevel3_age=new Array(physicallevel3,physicallevel3_1,physicallevel3_2);
            var physicallevel4=parseFloat("<?php echo $data[0]['age'][3][2]; ?>");
            var physicallevel4_1=parseFloat("<?php echo $data[1]['age'][3][2]; ?>");
            var physicallevel4_2=parseFloat("<?php echo $data[2]['age'][3][2]; ?>");
            var physicallevel4_age=new Array(physicallevel4,physicallevel4_1,physicallevel4_2);
            var physicallevel5=parseFloat("<?php echo $data[0]['age'][4][2]; ?>");
            var physicallevel5_1=parseFloat("<?php echo $data[1]['age'][4][2]; ?>");
            var physicallevel5_2=parseFloat("<?php echo $data[2]['age'][4][2]; ?>");
            var physicallevel5_age=new Array(physicallevel5,physicallevel5_1,physicallevel5_2);
           $('#age_5').highcharts({
            exporting: {
              enabled:false
            },
              title: {
                text: '5-6岁环比',
                x: -20 //center
              },
              xAxis: {
                categories: year
              },
              yAxis: {
                title: {
                    text: '人数 (人)'
                },
                plotLines: [{
                  value: 0,
                  width: 1,
                  color: '#808080'
                }]
              },
              tooltip: {
                valueSuffix: '人'
              },
              legend: {
                layout: 'vertical',
                align: 'right',
                verticalAlign: 'middle',
                borderWidth: 0
              },
              series: [{
                name: '优秀',
                data: physicallevel1_age
              },{
                name: '良好',
                data: physicallevel2_age
              },{
                name: '合格',
                data: physicallevel3_age
              },{
                name: '不合格',
                data: physicallevel4_age
              },{
                name: '无法评级',
                data: physicallevel5_age
              }]
            });
          </script>
          <div style="width:50%;float:right">
            <table class="table" style="width:500px;border:1px solid #67bd98;" border="1">
            <tr>
              <td height="30" style="text-align:center;">&nbsp;&nbsp;</td>
              <volist name="data" id="year">
                <td style="text-align:center;">{$year.year}</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">优秀</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[age][0][2]/($year[age][0][2]+$year[age][1][2]+$year[age][2][2]+$year[age][3][2]+$year[age][4][2])*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">良好</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[age][1][2]/($year[age][0][2]+$year[age][1][2]+$year[age][2][2]+$year[age][3][2]+$year[age][4][2])*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">合格</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[age][2][2]/($year[age][0][2]+$year[age][1][2]+$year[age][2][2]+$year[age][3][2]+$year[age][4][2])*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">不合格</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[age][3][2]/($year[age][0][2]+$year[age][1][2]+$year[age][2][2]+$year[age][3][2]+$year[age][4][2])*100,2);</php>%</td>
              </volist>
            </tr>
            <tr>
              <td height="30" style="text-align:center;">无法评级</td>
              <volist name="data" id="year">
                <td style="text-align:center;"><php> echo round($year[age][4][2]/($year[age][0][2]+$year[age][1][2]+$year[age][2][2]+$year[age][3][2]+$year[age][4][2])*100,2);</php>%</td>
              </volist>
            </tr>
          </table>
          </div>
          <div style="clear:both;"></div>
        </div>
        <!--5岁环比结束-->
      </div>
      <!--整体评分情况结束-->
      <!--身体形态情况开始-->
      <div class="box" id="box2" style="display:none;">
        <include file="BodyShape" />
      </div>
      <!--身体形态情况结束-->
      <!--身体素质情况开始-->
      <div class="box" id="box3" style="display:none;">
        <include file="PhysicalQuality" />
      </div>
      <!--身体素质情况结束-->
      <!--身体机能状况开始-->
      <div class="box" id="box4" style="display:none;">
        <include file="HeartRate" />
      </div>
      <!--身体机能状况结束-->
      <!--综合评价开始-->
      <div class="box" id="box5" style="display:none;">
        <textarea id="comment" style="width:90%;height:300px;border:2px solid #67bd98;margin:15px;padding:5px;">{$health_report.comment}</textarea>
        <div class="action_link tc small" style="border:0;">
            <input type="hidden" id="rpt_id" value="{$health_report.rpt_id}">
            <a class="save" href="javascript:saveEvaluation();">提交</a>
            <a href="javascript:reset();">取消</a>
          </div>
      </div>
      <!--综合评价结束-->
    </div>
  </div>
</div>
<input type="hidden" id="id" value="1">
<script>
function reset(){
  $("#comment").val("");
}
function saveEvaluation(){
  var comment=$("#comment").val();
  var rpt_id=$("#rpt_id").val();
  if(comment==""){
    alert("请评价后再提交");
  }
  $.ajax({
    type: "POST",
    url:"{:U('public/Report/doSaveEvaluation')}",
    data:"rpt_id="+rpt_id+"&comment="+comment,
    dataType:"text",
    success:function(data){
      if(isNaN(data)){
          alert(data);
      }else{
        window.location.href=window.location.href;
      }
    }
  });
}
</script>
<include file="../Public/_foot" />